package cn.singno.bob.bean;

import java.io.Serializable;
import java.util.List;

import cn.singno.bob.emun.BusinessCode;

/**
 * <p>名称：JsonMessage.java</p>
 * <p>描述：json对象</p>
 * <pre>
 *    
 * </pre>
 * @author 鲍建明
 * @date 2014年7月31日 下午1:17:17
 * @version 1.0.0
 */
public class JsonMessage implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3785403797067610151L;

	private Integer code;
	
	private String message;
	
	//每页记录数
	private Integer pageSize ;
	
	//总几页
	private Integer pageCount;
	
	//总记录数
	private Long total;
	
	private Integer pageNow;
	
	private Object obj;
	
	
	private List<?> rows;


	public JsonMessage(){}
	
	public JsonMessage(BusinessCode businessCode){
		this.code = businessCode.getCode();
		this.message = businessCode.getMessage();
	}
	
	
	public JsonMessage(Integer code, String message){
		this.code = code;
		this.message = message;
	}
	
	public Integer getPageSize() {
		return pageSize;
	}


	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}


	public Integer getPageCount() {
		return pageCount;
	}


	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}


	public Long getTotal() {
		return total;
	}


	public void setTotal(Long total) {
		this.total = total;
	}


	public Integer getCode() {
		return code;
	}


	public void setCode(Integer code) {
		this.code = code;
	}


	public String getMessage() {
		return message;
	}


	public void setMessage(String message) {
		this.message = message;
	}


	public List<?> getRows() {
		return rows;
	}


	public void setRows(List<?> rows) {
		this.rows = rows;
	}


	public Integer getPageNow() {
		return pageNow;
	}


	public void setPageNow(Integer pageNow) {
		this.pageNow = pageNow;
	}


	public Object getObj() {
		return obj;
	}


	public void setObj(Object obj) {
		this.obj = obj;
	}


	
	
	
}
